home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / source / thesource6.dms / thesource6.adf / Source / Misc / ReactDiff.lha / ReactionDiffusion / README < prev    next >
Encoding:
Text File  |  1993-01-29  |  2.3 KB  |  59 lines

  1.         Reaction-Diffusion Examples
  2.  
  3. This directory contains two simple programs that generate patterns
  4. using the chemical process known as reaction-diffusion.
  5.  
  6. The first of these programs is "linear", and it creates one-dimensional
  7. graphs of (simulated) chemical concentration.  The chemical system
  8. being simulated generates a semi-regular landscape of peaks and valleys.
  9. By default, the simulation is performed on a line of 60 "cells" and
  10. displayed in a window of dimensions 1000 by 300 pixels.  Here are the
  11. command line options:
  12.  
  13.   -s <xsize> <ysize>   Change window dimensions.
  14.   -n <ncells>          Set the number of cells to <ncells>.
  15.   -r <rspeed>          Alter the reaction speed.  Default is 1.
  16.                Smaller values will give broader hills, and
  17.                values much larger than 1 will cause the
  18.                solution method to fail.
  19.  
  20. Running "linear" with the invocation "linear -n 200 -r .2" on a DECstation
  21. 5000 gives a pleasing animation of the pattern forming process.
  22.  
  23. The second program is "spots", and it can simulate either of two
  24. reaction-diffusion systems, one for making spots and the other for
  25. stripes.  By default, "spots" creates a set of spots on a 30 by 30
  26. grid of cells.  Here are the command line options:
  27.  
  28.   -n <xsize> <ysize>   Change number of cells in grid.
  29.   -x                   Draw stripes instead of spots.
  30.  
  31.  
  32. These programs were written to be stripped-down examples of how to
  33. simulate reaction-diffusion systems.  Any number of improvements are
  34. possible, including:  access to more of the reaction parameters, better
  35. user interface, simulation of other reaction-diffusion systems.  Both
  36. programs use X11 to display the graphics, but the calls are isolated
  37. and it should be simple to substitute your favorite graphics library.
  38.  
  39. For more information about reaction-diffusion, especially as it relates
  40. to computer graphics, see the following two articles:
  41.  
  42.   "Generating Textures on Arbitrary Surfaces Using Reaction-Diffusion"
  43.   Greg Turk
  44.   Computer Graphics, Vol. 25, No. 4, pp. 289-298
  45.   July 1991 (SIGGRAPH '91)
  46.  
  47.   "Reaction-Diffusion Textures"
  48.   Andrew Witkin and Michael Kass
  49.   Computer Graphics, Vol. 25, No. 4, pp. 299-308
  50.   July 1991 (SIGGRAPH '91)
  51.  
  52. The bibliographies of these papers are reasonable jumping-off points
  53. into the reaction-diffusion literature.
  54.  
  55.  
  56. Greg Turk (turk@cs.unc.edu)
  57. August 1991
  58. updated July 1992
  59.